package com.htjx.mall.commons.mappers;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.htjx.mall.commons.models.product.Brand;

public interface BrandMapper {
	
	public void insertOne(Brand model); 
	
	public void updateOne(Brand model);
	
	public void deleteOne(long id);
	
	public Brand selectOne(long id);
	
	public List<Brand> selectByActive(boolean active);
	
	public List<Brand> page(Map<String, Object> params);
	
	public int pageCount(Map<String, Object> params);
	
	public List<Brand> selectByProperty(@Param("p_name") String propertyName, @Param("p_value") String propertyValue);
	
}
